package com.example.day07.homework;

public class StringBuilderExercise {
    public static void main(String[] args) {
        StringBuilder stringBuilder=new StringBuilder();
        System.out.println(stringBuilder.append("aa"));
        System.out.println(stringBuilder.append('s'));
        System.out.println(stringBuilder.append(2));
        System.out.println(stringBuilder.append(new char[]{'a','d','c'}));
        System.out.println(stringBuilder.appendCodePoint(9));
        System.out.println(stringBuilder.capacity());
        System.out.println(stringBuilder.codePointAt(5));
        System.out.println(stringBuilder.codePointBefore(8));
        System.out.println(stringBuilder.append(3));
        System.out.println(stringBuilder.deleteCharAt(5));
       // System.out.println(stringBuilder.ensureCapacity(5));
//        System.out.println(stringBuilder.getChars(1,2,new char[]{'g'},1));
        System.out.println(stringBuilder.indexOf("adc"));
        System.out.println(stringBuilder.indexOf("aa",2));
        System.out.println(stringBuilder.insert(1,3));
        System.out.println(stringBuilder.insert(5,"dsfas"));
        System.out.println(stringBuilder.length());
        System.out.println(stringBuilder.replace(1,2,"wwwqqq"));
        System.out.println(stringBuilder.reverse());
        stringBuilder.setCharAt(1,'d');
      stringBuilder.setLength(10);
        System.out.println(stringBuilder.subSequence(1,10));
        System.out.println(stringBuilder.substring(0));
        System.out.println(stringBuilder.substring(1,2));
        System.out.println(stringBuilder.toString());
        stringBuilder.trimToSize();
        System.out.println(stringBuilder);
    }
}
